package mutsumimod.cards.deprecated;

import basemod.AutoAdd;
import com.megacrit.cardcrawl.actions.common.HealAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.powers.FrailPower;
import com.megacrit.cardcrawl.powers.VulnerablePower;
import com.megacrit.cardcrawl.powers.WeakPower;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.util.CardStats;

@Deprecated
@AutoAdd.Ignore
public class Fragile extends BaseCard {
    public static final String ID = makeID(Fragile.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.SKILL,
            CardRarity.UNCOMMON,
            CardTarget.SELF,
            1
    );

    public Fragile() {
        super(ID, info);
        setAttr(0,0,7);
        setAttrUpg(0,0,3);
        setMagicNumberTwo(2,0);
        exhaust = true;
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        addToBot(new HealAction(p,p,magicNumber));
        applyPowerSelf(new VulnerablePower(p,magicNumberTwo,false),magicNumberTwo);
        applyPowerSelf(new WeakPower(p,magicNumberTwo,false),magicNumberTwo);
        applyPowerSelf(new FrailPower(p,magicNumberTwo,false),magicNumberTwo);
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new Fragile();
    }

}
